package ctp.ctpgraph;

public class Edge {
	String name = null;
	double probBlocked;
	double cost;

	public Edge(double cost, double probClosed, String name) {
		super();
		this.probBlocked = probClosed;
		this.cost = cost;
		this.name = name;
	}
	
	public double getProbBlocked() {
		return this.probBlocked;
	}

	public double getCost() {
		return this.cost;
	}

	public void setCost(double cost) {
		this.cost = cost;
	}

	@Override
	public String toString() {
		return String.format("%s c:%.1f p:%.1f ", name, cost, probBlocked);
	}

}
